package com.code.user.model.po;

import com.code.commons.model.po.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * 用户token与手机号的绑定PO及持久层对象
 *
 * @author tangyifei
 * @since 2020年1月14日09:10:11
 */
@ApiModel("用户token与手机号的绑定PO及持久层对象")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserToken extends BasePO<Long> {

    @ApiModelProperty(value = "主键", example = "1")
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;

    @ApiModelProperty(value = "手机号", example = "150****0055")
    private String phone;

    @ApiModelProperty(value = "token的主键", example = "1131313")
    private String tokenId;

    @ApiModelProperty(value = "推荐人的主键", example = "1")
    private String recommendId;
}
